<div class="form-group sms-template-1 data-item">
    <label class="col-sm-2 control-label">缩略图</label>
    <div class="col-sm-10 col-xs-12">
        <div class="col-sm-6" style="margin: 0px;padding-left: 0;">
            {php echo tpl_form_field_image('data_img[]',$data['data_img']);}
 		</div>           
            <!--<input type="text" name="data_temp[]" class="form-control valid" value="{$data['data_temp']}">-->
        <div class="input-group form-group col-sm-4" style="margin: 0px;padding-right: 0;">
        	<span class="input-group-addon" >名称</span>
            <input type="text" name="data_tag[]" class="form-control valid" value="{$data['data_tag']}">
            <span class="input-group-addon btn btn-default data-item-delete"><i class="fa fa-remove"></i> 删除</span>
        </div>
        <div class="input-group form-group col-sm-4" style="margin: 0px;padding-right: 0;">
        <label class="col-sm-2 control-label must">状态</label>
	        <div class="col-sm-8 col-xs-12">
	            <label class="radio-inline"><input type="checkbox" class="check" {if $data['data_status'] == 1}checked{/if}>显示</label>
            	<input type="hidden" class="statys" name="data_status[]" value="2" />
            	<div class="help-block">取消后不会显示</div>
	        </div>
        </div>
        <div class="help-block">缩略图建议大小为50X50，图形尽量简单。</div>
    </div>
</div>
<script>
	$('.check').click(function(){
		if ($(this).parent().next().val() == 1) {
			$(this).parent().next().val(2);
		} else{
			$(this).parent().next().val(1);
		}
	});
</script>